<div class="content4 content41 page" data-page="supervisionNotice" id="supervisionNotice">
	<p class="location">
		当前位置:
		<label class="locationInfo"><a href="javascript:void(0)" class="platform_main">首页</a> &gt; <a href="javascript:void(0)" class="supervisionNotice_list">确认收货&amp;监管</a> &gt; 理货任务信息</label>
	</p>
	<div style="margin-left: 32px; margin-top: 15px;">收货时间/监管时间:<input name="" isNull="1" codeName="收货时间/监管时间" class="inventoryDate" type="text" onfocus="WdatePicker({});" readonly="readonly"/></div>
	<div class="d2 platformBtns">
		<div class="inventoryIds"></div>
		<span class="tallying_info">理货任务信息</span>
		<a class="topLink repeatRecieve">重新理货</a>
		<a class="detainedApplication">发起扣货</a>
		<div id="loanSubmit" style="float: right;">确认监管</div>
		<div class="button-recieve" style="float: right;">确认收货</div>
		<div style="float: left; margin : 30px 0 0 15px">跨屏 <input type="checkbox" class="ws"/></div>
		<div style="float: left; margin : 30px 0 0 15px">全选 <input type="checkbox" class="checkAll" /></div>
	</div>

	<div class="tallying_base">
		<!--<div class="tallying_title">
			<p>
				<lable style="margin-left: 20px;"><input type="checkbox" class="checkAll"/> 全选 </lable>
				<lable style="margin-left: 20px;" class="tallying_title_lable">理货单号：</lable><span id="tallyingNumber"></span>
				<lable style="margin-left: 20px;">完成时间：</lable><span id="finishedDateTime"></span>
				<lable style="margin-left: 20px;">理货员：</lable><span id="clerkName"></span>
				<lable style="margin-left: 20px;">状态：</lable><span id="tallyingState"></span>
				<span class="unusual none"><a class="button_unusual">异常信息</a></span>
			</p>
		</div>-->
		<div>
			<table class="notice_table" cellspacing="0px" cellpadding="0px">
				<!--<tbody id="bulkstockListBody"></tbody>-->
				<script type="text/template" id="bulkstockTpl">
					<tr class="loan_tr">
						<th>#</th>
						<th>箱号</th>
						<th>箱型尺寸</th>
						<th>运单号</th>
						<th>理货/确认时间</th>
						<th>物流公司</th>
						<th>理货/确认状态</th>
						<th>监管状态</th>
						<!--<th>状态</th>-->
						<th>操作</th>
					</tr>
					{@each datas as it, index}
					{@if it.type != 3}
					<tr class="tr_style table-data" inventoryId="${it.inventoryId}">
						<td><input type="checkbox" class="supervisionNoticeCheckeds" inventoryId="${it.inventoryId}" /> ${index*1+1}</td>
						<td>
							${it.caseNumber}</td>
						<td>${it.caseSize}</td>
						<td>${it.waybillNumber}</td>
						<td>${it.updateDateTime}</td>
						<td>${it.logisticsCompanyName1}</td>
						<td>{@if it.tallyingState==0} 未完成 {@else if it.tallyingState==1} 已完成 {@/if}
						</td>
						<td>
							{@if it.supervisionState==0} 未知 {@else if it.supervisionState==1} 已上报{@else if it.supervisionState==2} 收货确认 {@else if it.supervisionState==3} 已监管 {@else if it.supervisionState==4} 解除监管{@/if}
						</td>
						<!--<td>
							{@if it.abnormal==0} 异常 {@else if it.abnormal==1} 正常{@/if}
						</td>-->
						<td>
							<span class="table_details_link tallyingListDetail">详情 </span>
						</td>
					</tr>
					{@/if}
					{@/each}
				</script>
			</table>
			<table class="notice_table1" cellspacing="0px" cellpadding="0px">
				<script type="text/template" id="bulkstockTpl1">
					<tr class="loan_tr">
						<th>#</th>
						<th>应收金额</th>
						<th>应收账款对价</th>
						<th>发票金额</th>
						<th>对应买方</th>
						<th>发票号码</th>
						<th>发票日期</th>
						<th>预计到期</th>
						<th>锁定日期</th>
						<th>经办人</th>
						<th>经办单位</th>
						<th>其他</th>
						<th>附件信息</th>
					</tr>
					{@each datas as it, index1}
					{@if it.type == 3}
					<tr class="tr_style table-data" inventoryId="${it.inventoryId}">
						<td><input type="checkbox" class="supervisionNoticeCheckeds" inventoryId="${it.inventoryId}" /> ${index1*1+1}</td>
						<td>${formatCurrency(it.receivableAmount)}</td>
						<td>${formatCurrency(it.factoringAmount)}</td>
						<td>${formatCurrency(it.invoiceAmount)}</td>
						<td>${it.purchaser}</td>
						<td>${it.invoiceNumber}</td>
						<td>${(it.invoiceDate).substr(0, 10)}</td>
						<td>${(it.dueDate).substr(0, 10)}</td>
						<td>${it.confirmDateTime}</td>
						<td>${it.confirmAccount}</td>
						<td>${it.logisticsCompanyName}</td>
						<td>${it.othersRemark}</td>
						<td>
							{@if it.fileUuid != ""}
							  <a target="_blank" href="/finance/api/v1.0/downloadFile.file?fileUuid=${it.fileUuid}">${inquireFile(it.fileUuid)}</a>&nbsp;&nbsp;
							{@/if}
						</td>
					</tr>
					{@/if}
					{@/each}
				</script>
			</table>
			<table class="notice_table2" cellspacing="0px" cellpadding="0px">
				<script type="text/template" id="bulkstockTpl2">
					<tr class="loan_tr">
						<th>No</th>
						<th>入库单编号</th>
						<th>仓库</th>
						<th>商品</th>
						<th>入库量</th>
						<th>重量</th>
						<th>单位</th>
						<th>等级</th>
						<th>操作</th>
					</tr>
					{@each datas as it, index1}
					<tr class="tr_style table-data" inventoryId="${it.inventoryId}" caseNumber="${it.caseNumber}" financeNumber="${it.financeNumber}">
						<td><input type="checkbox" class="supervisionNoticeCheckeds" inventoryId="${it.inventoryId}" /> ${index1*1+1}</td>
						<td>${it.caseNumber}</td>
						<td>${it.warehouseName}</td>
						<td>${it.containerBulkstocks[0].bulkstockName}</td>
						<td>${it.containerBulkstocks[0].quantity}</td>
						<td>${it.containerBulkstocks[0].weight}</td>
						<td>${it.containerBulkstocks[0].unit}</td>
						<td>${it.containerBulkstocks[0].specification}</td>
						<td><a href="javascript:void(0);" class="detail">详情</a></td>
					</tr>
					{@/each}
				</script>
			</table>
		</div>
	</div>
</div>
<!--异常信息-->
<div id="unusualReportTask-dialog" class="dialog unusualReportTask_dialog none" style="margin-top: -170px; margin-left: -325px;">
	<div class="dialogTitle">理货异常</div>
	<button class="closeDiv">×</button>
	<div class="dialogContent unusualReportTask" action="abnormalTallying" version="v1.0">
		<p>
			<span><span class="requiredInput">*</span>异常理货地点：
			<input type="text" isNull="1" codeName="异常理货地点" maxlength="255" name="tallyAddress" />
			</span>
			<span><span class="requiredInput">*</span>异常理货类型：
			<select name="abnormalType" style="width: 66px;">
				<option value="0">未知</option>
				<option value="1">货损</option>
				<option value="2">丢失</option>
			</select>
			</span>
		</p>
		<p>
			<span><span class="requiredInput">*</span>理货异常说明：
			<textarea name="abnormalComment" class="field-input abnormalComment" isNull="1" codeName="理货异常说明" maxlength="255"></textarea>
			</span>
		</p>

		<div>
			录音文件:
			<input type="hidden" isNull="1" codeName="录音文件" name="soundRecorde" id="soundRecorde" />
			<p>
				<label for="uploadFileSoundRecorde" class="file uploadFileSoundRecorde"> 上传录音文件
					<input type="file" class="uploadFileInput2" name="file" id="uploadFileSoundRecorde" />
				</label>
			</p>
		</div>
		<div>
			异常图片:
			<input type="hidden" isNull="1" codeName="异常图片" name="abnormalFile" id="abnormalFile" />
			<p>
				<label for="uploadFileAbnormalFile" class="file uploadFileAbnormalFile"> 上传异常图片
					<input type="file" class="uploadFileInput2" name="file" id="uploadFileAbnormalFile" accept=".png,.jpg,.bmp" />
				</label>
			</p>
		</div>
		<input type="hidden" name="tallyingId" />
	</div>
	<div class="footerBtn">
		<div id="sureabnormal" class="dialogBtn dialogHandlerBtn">确定</div>
	</div>
</div>